class Person {
	constructor(name, surname) {
		this.name = name;
		this.surname = surname;
	}
}

var myMixin = {
	getFullName: function() { 
		return this.name + " " + this.surname;
	}
};


augment(Person.prototype, myMixin);

var johnSmith = new Person("Jan", "Kowalski");

console.log(johnSmith.getFullName());		// wynik: "Jan Kowalski"
